﻿<UserControl x:Class="Fluffy.FileMenuCommands.OpenCommandView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:fileMenuCommands="clr-namespace:Fluffy.FileMenuCommands"
             x:ClassModifier="internal"
             mc:Ignorable="d" d:DataContext="{d:DesignInstance fileMenuCommands:OpenCommandViewModel}"
             d:DesignHeight="300" d:DesignWidth="603">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
<!--        <TextBlock Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Text="Open" FontSize="32"/>-->
        
        <Grid Grid.Row="1" Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Text="Recent Documents" FontSize="24"/>
            <fileMenuCommands:RecentDocumentsView Grid.Row="1" DataContext="{Binding}"/>
        </Grid>
        <Button Grid.Row="1" Grid.Column="1" Command="{Binding OpenDocumentCommand}" Content="Open" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,0">
            <Button.Template>
                <ControlTemplate>
                    <Border BorderThickness="1" BorderBrush="Black" Background="Transparent">
                        <StackPanel Orientation="Horizontal" Margin="5">
                            <Path Fill="Black" Data="M 33.185 7.58 h -6.533 V 6.571 h 6.533 V 7.58 Z M 33.185 8.238 h -6.533 v 1.011 h 6.533 V 8.238 Z M 33.181 3.661 h -6.523 v 2.223 h 6.523 V 3.661 Z M 35.268 1.271 v 23.827 c -0.001 0.357 -0.292 0.648 -0.65 0.648 h -9.397 c -0.359 0 -0.649 -0.291 -0.649 -0.649 V 1.271 c 0 -0.358 0.29 -0.65 0.649 -0.65 h 9.397 C 34.977 0.621 35.268 0.913 35.268 1.271 Z M 33.969 1.918 h -8.1 v 22.53 h 8.1 V 1.918 Z M 33.185 9.907 h -6.533 v 1.008 h 6.533 V 9.907 Z M 32.122 17.424 c 0 1.162 -0.939 2.099 -2.097 2.099 c -1.16 0 -2.099 -0.938 -2.099 -2.099 c 0 -1.158 0.94 -2.098 2.099 -2.098 C 31.183 15.326 32.122 16.267 32.122 17.424 Z M 31.365 17.424 c 0 -0.739 -0.6 -1.341 -1.341 -1.341 c -0.742 0 -1.342 0.601 -1.342 1.341 s 0.6 1.34 1.342 1.34 C 30.765 18.764 31.365 18.164 31.365 17.424 Z M 22.787 5.192 v 13.505 c 0 0.814 -0.655 1.473 -1.461 1.473 H 14.03 c 0 0 -0.414 2.948 2.212 2.948 v 1.475 H 14.03 H 9.608 H 7.396 V 23.12 c 2.529 0 2.212 -2.948 2.212 -2.948 H 2.315 c -0.809 0 -1.465 -0.659 -1.465 -1.473 V 5.192 c 0 -0.814 0.656 -1.47 1.465 -1.47 h 19.01 C 22.132 3.722 22.787 4.378 22.787 5.192 Z M 13.182 18.368 c 0 -0.698 -0.566 -1.263 -1.264 -1.263 c -0.699 0 -1.266 0.565 -1.266 1.263 c 0 0.698 0.566 1.265 1.266 1.265 C 12.617 19.633 13.182 19.066 13.182 18.368 Z M 21.221 5.285 H 2.418 v 11.387 H 21.22 h 0.001 V 5.285 Z M 11.931 17.577 c -0.434 0 -0.785 0.352 -0.785 0.785 s 0.352 0.785 0.785 0.785 s 0.785 -0.352 0.785 -0.785 S 12.365 17.577 11.931 17.577 Z"/>
                            <TextBlock Text="Open document" VerticalAlignment="Center" Margin="10,0,0,0"/>
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </Grid>
</UserControl>
